<?php
/**
 * --------------------------------------------------------------
 * 友情链接模型
 * --------------------------------------------------------------
 * Light Year Doc
 * @author yinq<3331653644@qq.com>
 * --------------------------------------------------------------
 */
namespace app\admin\model;

use think\Model;

class FriendLinks extends Model
{
    protected $autoWriteTimestamp = true;
	
	// 定义修改器
    public function setStartTimeAttr($value)
    {
        return $value != '' ? strtotime($value) : 0;
    }
	
    public function setEndTimeAttr($value)
    {
        return $value != '' ? strtotime($value) : 0;
    }
}